﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="CommonWordsManagement.aspx.cs" Inherits="NetDon.OA.Portal.Admin.CommonWordsManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        var userDialogSize = { width: 900, height: 650 };

        function modifyCustomer(id, site) {
            $dialog('<%=ResolveUrl("~/Admin/CommonWordsEdit.aspx") %>?Type=0&Id=' + id + '&Site=' + site, userDialogSize, function (result) {
                if (result) {
                    $get('<%=btnReload.ClientID %>').click();
                }
            });
        }




    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="margin-top: 10px">
                <NetDon:GridView ID="gridCustomerInfoList" runat="server" AutoGenerateColumns="False"
                    AllowSorting="true">
                    <Columns>
                        <NetDon:BoundField HeaderText="HTMLTOOL分类" DataField="Category" SortExpression="Category">
                        </NetDon:BoundField>
                        <NetDon:TemplateField HeaderText="US" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditUS" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",0);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                          <NetDon:TemplateField HeaderText="UK " ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditUK" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",2);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                          <NetDon:TemplateField HeaderText="AU" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditAU" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",1);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                           <NetDon:TemplateField HeaderText="DE" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditDE" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",3);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                           <NetDon:TemplateField HeaderText="FR" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditFR" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",4);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                           <NetDon:TemplateField HeaderText="IT" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditIT" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",5);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                            <NetDon:TemplateField HeaderText="Site1" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditSite1" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",6);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                            <NetDon:TemplateField HeaderText="Site2" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditSite2" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",7);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                            <NetDon:TemplateField HeaderText="Site3" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEditSite3" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",8);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                            <NetDon:TemplateField HeaderText="Site4" ItemStyle-Width="80px">
                            <ItemTemplate>
                                <asp:ImageButton ID="Site4" Style="margin-left: 5px" ToolTip="Edit" runat="server"
                                    CommandName="Edit" SkinID="Modify" ImageAlign="AbsMiddle" CausesValidation="false"
                                    OnClientClick='<%# Eval("Id","modifyCustomer(\"{0}\",9);return false;") %>' />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                    </Columns>
                </NetDon:GridView>
                <asp:Button ID="btnReload" runat="server" SkinID="Hidden" OnClick="btnReload_Click" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
